/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.earnings.entity;

import com.jeeplus.modules.member.entity.Member;
import javax.validation.constraints.NotNull;
import java.util.Date;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;
import lombok.Data;

/**
 * 收益记录Entity
 * @author zhych
 * @version 2021-08-18
 */
@Data
public class Earnings extends DataEntity<Earnings> {
	
	private static final long serialVersionUID = 1L;
    @NotNull(message="用户不能为空")
	@ExcelField(title="用户", fieldType=Member.class, value="u.nickname", align=2, sort=1)
	private Member u;		// 用户
	@ExcelField(title="订单号", align=2, sort=2)
	private String orderId;		// 订单号
	@ExcelField(title="支付金额", align=2, sort=3)
	private String payment;		// 支付金额
	@ExcelField(title="收益", align=2, sort=4)
	private String earnings;		// 收益
	@ExcelField(title="类型", dictType="earnings_type", align=2, sort=5)
	private String earningsType;		// 类型
	@ExcelField(title="比例", align=2, sort=6)
	private String ratio;		// 比例
	@ExcelField(title="备注", align=2, sort=7)
	private String remark;		// 备注
	private Date beginCreateDate;		// 开始 创建时间
	private Date endCreateDate;		// 结束 创建时间
	
	public Earnings() {
		super();
	}
	
	public Earnings(String id){
		super(id);
	}
}